package test.stack;

import java.util.ArrayList;
import java.util.List;

public class Queue {

	private List list = new ArrayList();
	
	public Object remove() {
		return list.size() == 0 ? null : list.remove(0);
	}
	
	public void add(Object obj) {
		list.add(obj);
	}
	
	
}
